#include <include/types.h>

int
memcpy(uint8_t *dest,const uint8_t *src,int count)
{
	while (count--) {
		*dest++=*src++;
	}
	return count;
}

int
memset(uint8_t *dest,uint8_t val,int count)
{
	while (count--) {
		*dest++=val;
	}
	return count;
}

int
memsetw(uint16_t *dest,uint16_t val,int count)
{
	while (count--) {
		*dest++=val;
	}
	return count;
}
int
strlen(const char *str)
{
	int len=0;
	while (*str++)
		len++;
	return len;
}
